package com.fufan.mtsaas.modules.base.processinfo.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.fufan.mtsaas.modules.base.processinfo.bo.request.ProcessInfoQueryRequest;
import com.fufan.mtsaas.modules.base.processinfo.model.PProcessInfo;
import com.fufan.mtsaas.modules.base.processinfo.response.PProcessInfoResponse;
import org.springframework.stereotype.Repository;

import java.io.Serializable;
import java.util.List;

/**
 * 流程处理表 Mapper 接口
 *
 * @author Liby
 * @since 2024-12-16
 */
@Repository
public interface PProcessInfoDao extends BaseMapper<PProcessInfo> {

    @Override
    Integer insert(PProcessInfo entity);

    @Override
    Integer deleteById(Serializable id);

    Integer update(PProcessInfo entity);

    PProcessInfo queryById(Serializable id);

    List<PProcessInfoResponse> queryAllByLimit(Page<PProcessInfoResponse> page, ProcessInfoQueryRequest entity);

    List<PProcessInfo> queryAll(PProcessInfo entity);

    Long count(PProcessInfo entity);
}